package com.xxkk.gameCore.net.sql.pojo;

import java.util.ArrayList;
import java.util.List;

public class ServerInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ServerInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andServerIdIsNull() {
            addCriterion("serverId is null");
            return (Criteria) this;
        }

        public Criteria andServerIdIsNotNull() {
            addCriterion("serverId is not null");
            return (Criteria) this;
        }

        public Criteria andServerIdEqualTo(Integer value) {
            addCriterion("serverId =", value, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdNotEqualTo(Integer value) {
            addCriterion("serverId <>", value, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdGreaterThan(Integer value) {
            addCriterion("serverId >", value, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("serverId >=", value, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdLessThan(Integer value) {
            addCriterion("serverId <", value, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdLessThanOrEqualTo(Integer value) {
            addCriterion("serverId <=", value, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdIn(List<Integer> values) {
            addCriterion("serverId in", values, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdNotIn(List<Integer> values) {
            addCriterion("serverId not in", values, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdBetween(Integer value1, Integer value2) {
            addCriterion("serverId between", value1, value2, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("serverId not between", value1, value2, "serverId");
            return (Criteria) this;
        }

        public Criteria andServerNameIsNull() {
            addCriterion("serverName is null");
            return (Criteria) this;
        }

        public Criteria andServerNameIsNotNull() {
            addCriterion("serverName is not null");
            return (Criteria) this;
        }

        public Criteria andServerNameEqualTo(String value) {
            addCriterion("serverName =", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameNotEqualTo(String value) {
            addCriterion("serverName <>", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameGreaterThan(String value) {
            addCriterion("serverName >", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameGreaterThanOrEqualTo(String value) {
            addCriterion("serverName >=", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameLessThan(String value) {
            addCriterion("serverName <", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameLessThanOrEqualTo(String value) {
            addCriterion("serverName <=", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameLike(String value) {
            addCriterion("serverName like", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameNotLike(String value) {
            addCriterion("serverName not like", value, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameIn(List<String> values) {
            addCriterion("serverName in", values, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameNotIn(List<String> values) {
            addCriterion("serverName not in", values, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameBetween(String value1, String value2) {
            addCriterion("serverName between", value1, value2, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerNameNotBetween(String value1, String value2) {
            addCriterion("serverName not between", value1, value2, "serverName");
            return (Criteria) this;
        }

        public Criteria andServerStateIsNull() {
            addCriterion("serverState is null");
            return (Criteria) this;
        }

        public Criteria andServerStateIsNotNull() {
            addCriterion("serverState is not null");
            return (Criteria) this;
        }

        public Criteria andServerStateEqualTo(Integer value) {
            addCriterion("serverState =", value, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateNotEqualTo(Integer value) {
            addCriterion("serverState <>", value, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateGreaterThan(Integer value) {
            addCriterion("serverState >", value, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("serverState >=", value, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateLessThan(Integer value) {
            addCriterion("serverState <", value, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateLessThanOrEqualTo(Integer value) {
            addCriterion("serverState <=", value, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateIn(List<Integer> values) {
            addCriterion("serverState in", values, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateNotIn(List<Integer> values) {
            addCriterion("serverState not in", values, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateBetween(Integer value1, Integer value2) {
            addCriterion("serverState between", value1, value2, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerStateNotBetween(Integer value1, Integer value2) {
            addCriterion("serverState not between", value1, value2, "serverState");
            return (Criteria) this;
        }

        public Criteria andServerTypeIsNull() {
            addCriterion("serverType is null");
            return (Criteria) this;
        }

        public Criteria andServerTypeIsNotNull() {
            addCriterion("serverType is not null");
            return (Criteria) this;
        }

        public Criteria andServerTypeEqualTo(String value) {
            addCriterion("serverType =", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeNotEqualTo(String value) {
            addCriterion("serverType <>", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeGreaterThan(String value) {
            addCriterion("serverType >", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeGreaterThanOrEqualTo(String value) {
            addCriterion("serverType >=", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeLessThan(String value) {
            addCriterion("serverType <", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeLessThanOrEqualTo(String value) {
            addCriterion("serverType <=", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeLike(String value) {
            addCriterion("serverType like", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeNotLike(String value) {
            addCriterion("serverType not like", value, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeIn(List<String> values) {
            addCriterion("serverType in", values, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeNotIn(List<String> values) {
            addCriterion("serverType not in", values, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeBetween(String value1, String value2) {
            addCriterion("serverType between", value1, value2, "serverType");
            return (Criteria) this;
        }

        public Criteria andServerTypeNotBetween(String value1, String value2) {
            addCriterion("serverType not between", value1, value2, "serverType");
            return (Criteria) this;
        }

        public Criteria andNetIpIsNull() {
            addCriterion("netIp is null");
            return (Criteria) this;
        }

        public Criteria andNetIpIsNotNull() {
            addCriterion("netIp is not null");
            return (Criteria) this;
        }

        public Criteria andNetIpEqualTo(String value) {
            addCriterion("netIp =", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpNotEqualTo(String value) {
            addCriterion("netIp <>", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpGreaterThan(String value) {
            addCriterion("netIp >", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpGreaterThanOrEqualTo(String value) {
            addCriterion("netIp >=", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpLessThan(String value) {
            addCriterion("netIp <", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpLessThanOrEqualTo(String value) {
            addCriterion("netIp <=", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpLike(String value) {
            addCriterion("netIp like", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpNotLike(String value) {
            addCriterion("netIp not like", value, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpIn(List<String> values) {
            addCriterion("netIp in", values, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpNotIn(List<String> values) {
            addCriterion("netIp not in", values, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpBetween(String value1, String value2) {
            addCriterion("netIp between", value1, value2, "netIp");
            return (Criteria) this;
        }

        public Criteria andNetIpNotBetween(String value1, String value2) {
            addCriterion("netIp not between", value1, value2, "netIp");
            return (Criteria) this;
        }

        public Criteria andIpIsNull() {
            addCriterion("ip is null");
            return (Criteria) this;
        }

        public Criteria andIpIsNotNull() {
            addCriterion("ip is not null");
            return (Criteria) this;
        }

        public Criteria andIpEqualTo(String value) {
            addCriterion("ip =", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotEqualTo(String value) {
            addCriterion("ip <>", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpGreaterThan(String value) {
            addCriterion("ip >", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpGreaterThanOrEqualTo(String value) {
            addCriterion("ip >=", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLessThan(String value) {
            addCriterion("ip <", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLessThanOrEqualTo(String value) {
            addCriterion("ip <=", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLike(String value) {
            addCriterion("ip like", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotLike(String value) {
            addCriterion("ip not like", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpIn(List<String> values) {
            addCriterion("ip in", values, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotIn(List<String> values) {
            addCriterion("ip not in", values, "ip");
            return (Criteria) this;
        }

        public Criteria andIpBetween(String value1, String value2) {
            addCriterion("ip between", value1, value2, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotBetween(String value1, String value2) {
            addCriterion("ip not between", value1, value2, "ip");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortIsNull() {
            addCriterion("webSocketPort is null");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortIsNotNull() {
            addCriterion("webSocketPort is not null");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortEqualTo(Integer value) {
            addCriterion("webSocketPort =", value, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortNotEqualTo(Integer value) {
            addCriterion("webSocketPort <>", value, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortGreaterThan(Integer value) {
            addCriterion("webSocketPort >", value, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortGreaterThanOrEqualTo(Integer value) {
            addCriterion("webSocketPort >=", value, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortLessThan(Integer value) {
            addCriterion("webSocketPort <", value, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortLessThanOrEqualTo(Integer value) {
            addCriterion("webSocketPort <=", value, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortIn(List<Integer> values) {
            addCriterion("webSocketPort in", values, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortNotIn(List<Integer> values) {
            addCriterion("webSocketPort not in", values, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortBetween(Integer value1, Integer value2) {
            addCriterion("webSocketPort between", value1, value2, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andWebSocketPortNotBetween(Integer value1, Integer value2) {
            addCriterion("webSocketPort not between", value1, value2, "webSocketPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortIsNull() {
            addCriterion("tcpPort is null");
            return (Criteria) this;
        }

        public Criteria andTcpPortIsNotNull() {
            addCriterion("tcpPort is not null");
            return (Criteria) this;
        }

        public Criteria andTcpPortEqualTo(Integer value) {
            addCriterion("tcpPort =", value, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortNotEqualTo(Integer value) {
            addCriterion("tcpPort <>", value, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortGreaterThan(Integer value) {
            addCriterion("tcpPort >", value, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortGreaterThanOrEqualTo(Integer value) {
            addCriterion("tcpPort >=", value, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortLessThan(Integer value) {
            addCriterion("tcpPort <", value, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortLessThanOrEqualTo(Integer value) {
            addCriterion("tcpPort <=", value, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortIn(List<Integer> values) {
            addCriterion("tcpPort in", values, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortNotIn(List<Integer> values) {
            addCriterion("tcpPort not in", values, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortBetween(Integer value1, Integer value2) {
            addCriterion("tcpPort between", value1, value2, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andTcpPortNotBetween(Integer value1, Integer value2) {
            addCriterion("tcpPort not between", value1, value2, "tcpPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortIsNull() {
            addCriterion("dispatcherPort is null");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortIsNotNull() {
            addCriterion("dispatcherPort is not null");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortEqualTo(Integer value) {
            addCriterion("dispatcherPort =", value, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortNotEqualTo(Integer value) {
            addCriterion("dispatcherPort <>", value, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortGreaterThan(Integer value) {
            addCriterion("dispatcherPort >", value, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortGreaterThanOrEqualTo(Integer value) {
            addCriterion("dispatcherPort >=", value, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortLessThan(Integer value) {
            addCriterion("dispatcherPort <", value, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortLessThanOrEqualTo(Integer value) {
            addCriterion("dispatcherPort <=", value, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortIn(List<Integer> values) {
            addCriterion("dispatcherPort in", values, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortNotIn(List<Integer> values) {
            addCriterion("dispatcherPort not in", values, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortBetween(Integer value1, Integer value2) {
            addCriterion("dispatcherPort between", value1, value2, "dispatcherPort");
            return (Criteria) this;
        }

        public Criteria andDispatcherPortNotBetween(Integer value1, Integer value2) {
            addCriterion("dispatcherPort not between", value1, value2, "dispatcherPort");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}